#define _CRT_SECURE_NO_WARNINGS


#include"Queue.h"
void test01()
{
	Queue q;
	QueueInit(&q);
}
void test02()
{
	Queue q;
	QueueInit(&q);
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);
	QueueDestroy(&q);
}
void test03()
{
	Queue q;
	QueueInit(&q);
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePop(&q);
	QueuePop(&q);
	QueuePop(&q);

	QueueDestroy(&q);

}
void test04()
{
	Queue q;
	QueueInit(&q);
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);
	int sz1 = QueueSize(&q);
	printf("%d\n", sz1);
	QueuePop(&q);
	QueuePop(&q);
	QueuePop(&q);
	QueuePop(&q);
	int sz2 = QueueSize(&q);
	printf("%d\n", sz2);
	
	int front = QueueFront(&q);
	int back = Queueback(&q);
	printf("front is %d\n", front);//2
	printf("back is %d\n", back);//4
}
int main()
{

	//test01();
	//test02();
	//test03();
	//test04();
	return 0;
}